<?php
	$limit = $this->limit;
	$model = new Model_Product_Product();
	$order = $this->order;
	$data = $model->getAllOrderByPrice($order);
	$i = 0;
	foreach ($data as $item_pro)
	{
		if($i<$limit)
		{
			?>
			<li>
			  	<a href="<?php echo $this->baseUrl().$model->getLinkById($item_pro['id']);?>"><img src="<?php echo $this->baseUrl();?>/public/images/products/thumbs/<?php echo $item_pro['image']?>" alt="" /></a>
			    <p class="code"><?php echo $item_pro['code'];?></p>
			    <p class="price"><?php echo number_format($item_pro['price']);?> VNĐ</p>
			</li>		
			<?php 
		}
		$i++;
	}
?>